package com.tensai.study.java.supper.branch;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Objects;

/**
 * @author Tensai
 */
@Slf4j
public class Classic {

    private static final String MAN = "man";
    private static final String WOMAN = "woman";
    @Data
    static class Person{
        private String gender;
        private String name;
    }
    public static void main(String[] args) {
        Person p = new Person();
        p.setGender(MAN);
        p.setName("张三");

        if(Objects.equals(p.getGender(), MAN)){
            log.info(p.getName() + "应该去男厕所");
        }

        if(Objects.equals(p.getGender(),WOMAN)){
            log.info(p.getName() + "应该去女厕所");
        }

    }
}
